package _14作业.t1;

import java.util.HashMap;
import java.util.Iterator;

public class Demo4 {
    public static void main(String[] args) {
        HashMap<String,String> map=new HashMap<>();
        map.put("邓超","孙俪");
        map.put("李晨","范冰冰");
        map.put("刘德华","刘岩");
        map.put("黄晓明","baby");
        map.put("谢霆锋","张柏芝");

        Iterator<String> iterator = map.keySet().iterator();
        while (iterator.hasNext()){
            String next = iterator.next();
            System.out.println(next+"->"+map.get(next));
        }
    }
}
